/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package gray.swing.element;

import java.awt.Container;
import javax.swing.JLabel;
import gray.Frame;
import java.awt.Color;
import java.awt.Font;

/**
 *
 * @author martin
 */
public class TitleElem extends JLabel implements Frame{

    private TitleElem(final String txt){
        super(txt);
        setFont(new Font("Monotype Corsiva",1,24));
    }
    
    public static Frame factoryTxt(final String txt){
        return new TitleElem(txt);
    }
    
    @Override
    public Container container() {
        return this;
    }

    @Override
    public Boolean ready() {
        return true;
    }
    
}
